const state = {
  keyState: {
    value: '',
    text: '',
    type: ''
  }
}

const getters = {
  getKeyVal (state) {
    return state.keyState.value
  },
  getKeyType (state) {
    return state.keyState.type
  },
  getKeyText (state) {
    return state.keyState.text
  }
}

const actions = {

}

const mutations = {
  keyState (state, keyState) {
    state.keyState[keyState.name] = keyState.keyValue
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
